//
//  AgreeViewController.m
//  QRMaster
//
//  Created by myApple on 15/5/7.
//  Copyright (c) 2015年 myApple. All rights reserved.
//

#import "AgreeViewController.h"

@interface AgreeViewController ()

@end

@implementation AgreeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = RGBA(237, 238, 241, 1);
    // Do any additional setup after loading the view.
    self.title =  NSLocalizedString(@"registAgreement", nil);
    [self getContent];
}

-(void)getContent
{
    UITextView * textView = [[UITextView alloc]initWithFrame:CGRectMake(0, 5, self.view.frame.size.width, self.view.frame.size.height - 70)];
    textView.textAlignment = NSTextAlignmentLeft;
    NSString * str = [NSString stringWithContentsOfFile:[[NSBundle mainBundle]pathForResource:@"service" ofType:@"txt"]encoding:NSUTF8StringEncoding error:nil];
    textView.text = str;
    textView.editable = NO;
    [self.view addSubview:textView];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
